package com.homework.note.Model;

import com.homework.note.Model.Enum.TrashType;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * @author htyu
 * @date 2019/3/9
 */

@Data
@Document
public class Trash {


    @Id
    private String id;

    /**
     *用户id
     */
    private String userID;

    /**
     *笔记或笔记本id
     */
    private String documentID;

    /**
     *笔记或笔记本名字
     */
    private String title;

    /**
     *笔记或笔记本内容
     */
    private String content;

    /**
     *垃圾类型（笔记或笔记本）
     */
    private TrashType type;

    /**
     *删除时间
     */
    private Date deleteTime;
}
